import { createStore , applyMiddleware } from "redux"
import { combineReducers } from "redux-immutable"
import thunk from "redux-thunk"

import { app , user } from "./modules/index"

const reducer = combineReducers({
    app,
    user
})

const store = createStore(
    reducer,
    applyMiddleware(thunk)
)

export default store